package com.example.dmdomain.entity;

import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "system_chat_file")
public class SystemChatFile {
    @Id
    @Column(name = "file_id")
    private String fileId;

    /**
     * 文件名
     */
    @Column(name = "file_name")
    private String fileName;
    /**
     * 文件大小
     */
    @Column(name = "file_size")
    private String fileSize;
    /**
     * 用户id
     */
    @Column(name = "user_id")
    private String userId;
    /**
     * 文件内容
     */
    @Column(name = "file_content")
    private String fileContent;
    /**
     * 软删除
     */
    @Column(name = "del_state")
    private String delState;
    /**
     * 会话id
     */
    @Column(name = "session_id")
    private String sessionId;
    /**
     * 上传时间
     */
    @Column(name = "upload_time")
    private String uploadTime;
    /**
     * 文件路径
     */
    @Column(name = "file_path")
    private String filePath;

    @Column(name = "system_name")
    private String systemName;
}
